
SRC=$(wildcard *.cpp)
OBJ=$(SRC:.cpp=.o)
BIN=ThreadPool

$(BIN):$(OBJ)
	g++ -o $@ $^ -l pthread -std=c++17
%.o:%.cpp
	g++ -c $< 
.PHONY:clean
clean:
	rm -rf $(BIN) $(OBJ) log